# -*- coding: utf-8 -*-
# @Time    : 2021/1/2 下午3:54
# @Author  : tgy


def test01():
    ...
    print(list([1, 2]))
    names = ['张三', '李四', '王武']
    print(names[1:0:-1])
    ages = [1, 2]
    ages.extend(names)
    print(ages)


def test02():
    ...
    ages = [1, 2, 3]

    ages.insert(1, 4)
    print(ages)


def test03():
    ...
    ages = [1, 2, 3]

    # del ages[100]
    # ages.pop(100)
    # ages.remove(1)
    print(ages)
    # print(ages.count(1))
    def call(k1):
        pass
        return  k1
    ages.sort(key=call, reverse=True)
    print(ages)

if __name__ == '__main__':
    test03()
